setClip(PDFPath,PDFFillMode) Method
In This Topic
Sets the clipping region of this graphics to the specified path.
The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see method) before setting a clipping path and restore the graphics state (see method) after the clipping path is no longer needed.
Syntax
Parameters
- path
- that represents the new clip region.
- fillMode
- Path fill mode.
Exceptions
| Exception | Description |
| java.lang.IllegalArgumentException | when the clip path is null. |
See Also